package com.pxxy.cels.entity;

import java.util.Objects;

/**
 * @program: Cels
 * @package: qikran.cels.entity
 * @description: ${生词本}
 * @author: qi_kran
 * @create: 2020-04-07 22:16
 **/
public class NoteBook extends BaseTerm{


    private static final long serialVersionUID = 2108046531811412025L;
    private int correctTimes;//答对的次数

    public NoteBook() {
        super();
        this.correctTimes = 0;//默认为0
    }

    public NoteBook(String en, String[] cn) {
        super(en, cn);
        this.correctTimes = 0;//more为0
    }

    @Override
    public boolean equals(Object o) {
     return super.equals(o);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode());
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString()).append("\t累计答对")
                .append(correctTimes).append("次");
        return sb.toString();
    }

    public int getCorrectTimes() {
        return correctTimes;
    }

    public void setCorrectTimes(int correctTimes) {
        this.correctTimes = correctTimes;
    }
}
